<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>词多多代理商平台</title>
    <include file="Index:header"/>
    <script type="text/javascript">
        $(function(){
            $(".help-side dl dd:eq(1)").addClass('cur');
        })
        $(function(){
            $("#top #topcon .nav li:eq(4)").addClass('cur');
        })
    </script>
    <script src="__PUBLIC__/js/main.js" type="text/javascript" charset="UTF-8"></script>
</head>

<body>
    <include file="Index:top"/>
    <div id="main">
    <include file="Setting:left"/>
        <div id="main_right" class="container">
            <div class="title">客户类型设置</div>
            <div id="infotab" class="container mt10">
                <ul class="tb cl">
                    <li>
                        <a href="{:U('setting_client')}">客户类型</a>
                    </li>
                    <li class="a">
                        <a href="{:U('client_add')}">添加类型</a>
                    </li>
                </ul>
                <div id="proxyinfo" class="p30 mt10">
                <form name="form1" id="form1" class="form" showOnMouseOver="false">
                    <table class="tableStyle mt30 ml70" formMode="line" failAlert="表单填写不正确，请按要求填写！">
                        <tr>
                            <td align="right"> <strong>客户类型：</strong>
                            </td>
                            <td>
                                <input type="text" name="keywords[]" class="validate[required,custom[chinese]] input" style="width:140px;"></td>
                            <td>
                                <div class="validation_info"></div>
                            </td>
                               
                            <td align="right">
                                <strong>收费金额：</strong>
                            </td>
                            <td>
                                <input type="text" name="moneys[]" class="validate[required,custom[onlyNumber]] input"></td>
                            <td>
                                <div class="T_add remove ico ico_application_form_add" style="margin-left:10px"></div>
                            </td>
                            <td>
                                <div class="validation_info"></div>
                            </td>                            
                        </tr>
                        <tbody id="keywords"></tbody>
                        <tr style="height:70px;">
                            <td></td>
                            <td style="padding-left: 10px;">
                                <input class="button green" type="button" name="button" id="button" value="提&nbsp;&nbsp;交" onclick="validateForm('#form1','__URL__/client_add');"/>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
            </div>
        </div>
    </div>
    <include file="Index:footer"/>
    <script type="text/javascript">
    $(".T_add").click(function() {
        var this_html = "<td align=\"right\"> <strong>客户类型：</strong>\
                            </td>\
                            <td>\
                                <input type=\"text\" name=\"keywords[]\" class=\"validate[required,custom[chinese]]] input\" style=\"width:140px;\"></td>\
                            <td>\
                                <div class=\"validation_info\"></div>\
                            </td>\
                            <td align=\"right\"> <strong>收费金额：</strong></td>\
                            <td>\
                                <input type=\"text\" name=\"moneys[]\" class=\"validate[required,custom[onlyNumber]] input\"></td>\
                            <td>\
                                <div class=\"T_del remove ico ico_application_form_delete\" style=\"margin-left:10px\"></div>\
                            </td>\
                            <td>\
                                <div class=\"validation_info\"></div>\
                            </td>";
        var after_tr = $("#keywords").append("<tr class='after_tr'></tr>"); //向当前行插入一行tr
        var after_tr = $(".after_tr:last"); //选择插入行的类名
        after_tr.html(this_html);
        after_tr.validationEngine();
    });
    //移除方法
    $(".T_del").live("click", function() {
        $(this).parent().parent().remove();
    });
    </script>
</body>

</html>